﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CuongHanh.Models
{
    [Table("tbl_OrderForGem")]
    public class OrderForGem
    {
        public int Id { get; set; }

        [Required]
        [Range(1,99999)]
        public int ServiceFeeId { get; set; }

        public int? CustomerId { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public string Address { get; set; }

        [Required,NotMapped]
        public string ShippingAddress { get; set; }

        [Required]
        public string Phone { get; set; }

        [Required]
        public string Remark { get; set; }

        [Required]
        public bool InVietNam { get; set; }

        [RegularExpression(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", ErrorMessage = "Email address is not valid")]
        public string Email { get; set; }

        public long Price { get; set; }

        public int OrderState { get; set; }

        public long ShippingCost { get; set; }

        public long UtilityFee { get; set; }
    }
}
